<?php


namespace support\command;


use Illuminate\Console\Command;

/**
 * 单元测试
 * @package support\command
 */
class Test extends Command
{
    protected $signature = 'test';
    protected $description = 'run unit test';

    public function handle()
    {
        $argv = $_SERVER['argv'];
        array_shift($argv);
        array_shift($argv);
        array_unshift($argv, 'phpunit');
        \PHPUnit\TextUI\Command::main();
    }
}
